package com.situ.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.situ.mvc.entity.Work;

@Controller
@RequestMapping(value="/work")
public class WorkController {
	
	@RequestMapping(value="/getAddWorkPage")
	public String getAddWorkPage() {
		return "work_add";
	}
	
	@RequestMapping(value="/addWork")
	public String addWork(Work work,Model model){
		model.addAttribute("work", work);
		return "work_info";
	}
}
